package com.naiterui.ehp.bs.cms.modules.inventory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.naiterui.ehp.bs.cms.common.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 库存
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("e_inventory")
public class Inventory extends BaseEntity {

    private static final long serialVersionUID = -8447074445476828288L;
    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * sku id
     */
    private Long skuId;

    /**
     * 实物库存
     */
    private Long physicalQuantity;

    /**
     * 欲占库存数量
     */
    private Long willQuantity;

    /**
     * 占用库存
     */
    private Long takeUpQuantity;

    /**
     * 是否冻结  0:正常。1:冻结,描述使用statusDescribe
     */
    private Integer status;
}
